<?php

/**
 * @BelongProject: flami_mangers
 * @Author: Zwc
 * @CreateTime: 2025-11-12 22:39:44
 * @Description: TODO
 */

namespace App\Domain;

use function PhalApi\DI;

class UserReportClassifyDomain
{
    /**
     * 获取举报类型
     * @param $langId
     * @param $type
     * @return mixed
     */
    public static function getReportClassify($type,$langId)
    {
        if (empty($langId)) {
            $langId = 306;
        }

        $cond = 'del_flag = 0 and lang_id = '.$langId.' and type = '.$type;
        return DI()->notorm->user_report_classify->where($cond)
            ->select('id,name')
            ->order('id desc')
            ->fetchAll();
    }


}